export default [
    {
        path:'/look',
        name:'look',
        component: () => import(/* webpackChunkName: "look" */ '../views/look'),
        meta:{
            title:'宝宝看',
            icon:'icon-eye'
        },
        footerNav:true,
        beforeEnter:(to,from,next) => {
            next();
        },
        children:[
            {
                path:'/look/song',
                name:'song',
                meta:{
                    title:'儿歌'
                },
                component: () => import(/* webpackChunkName: "look" */ '../views/look/song')
            },
            {
                path:'/look/story',
                name:'story',
                meta:{
                    title:'故事'
                },
                component: () => import(/* webpackChunkName: "look" */ '../views/look/story')
            },
            {
                path:'/look/cartoon',
                name:'cartoon',
                meta:{
                    title:'动画片'
                },
                component: () => import(/* webpackChunkName: "look" */ '../views/look/cartoon')
            },
            {
                path:'/look',
                redirect:'/look/cartoon'
            }
        ]
    },
    {
        path:'/listen',
        name:'listen',
        component:() => import(/* webpackChunkName: "listen" */ '../views/listen'),
        meta:{
            title:'宝宝听',
            icon:'icon-listen'
        },
        footerNav:true
    },
    {
        path:'/my',
        name:'my',
        component:() => import(/* webpackChunkName: "my" */ '../views/my'),
        meta:{
            title:'我的',
            icon:'icon-mygroup'
        },
        footerNav:true
    },
    {
        path:'/detail/:id',
        name:'detail',
        component:() => import(/* webpackChunkName: "detail" */ '../views/detail'),
        meta:{
            title:'详情'
        }
    },
    {
        path:'/audio',
        name:'audio',
        component:() => import(/* webpackChunkName: "audio" */ '../views/audio'),
        meta:{
            title:'音频'
        }
    },
    {
        path:'/video',
        name:'video',
        component:() => import(/* webpackChunkName: "video" */ '../views/video'),
        meta:{
            title:'视频'
        }
    },
    {
        path:'/',
        redirect:'/look'
    }
]